package com.niyue.sandbox.uclock.guiclock;

// An analog clock -- Using Timer and Calendar.
// Uses a BufferedImage and antialiasing.
// The second hand creep is from the Timer, which seems to take
// a little longer than the requested time to call the listener.
//  -- Fred Swartz, 1 May 1999, 2002-02-21 from applet to application

import java.awt.BorderLayout;
import java.awt.Container;

import javax.swing.JFrame;

///////////////////////////////////////////////////////////// ClockAnalogBuf
public class ClockAnalogBuf extends JFrame {

    Clock clockFace;
    
    //================================================================= main
    public static void main(String[] args) {
        JFrame windo = new ClockAnalogBuf();
        windo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        windo.setVisible(true);
    }//end main

    //========================================================== constructor
    public ClockAnalogBuf() {
        Container content = this.getContentPane();
        content.setLayout(new BorderLayout());
        clockFace = new Clock();
        content.add(clockFace, BorderLayout.CENTER);
        
        this.setTitle("Analog Clock");
        this.pack();
        
        clockFace.start();
    }//end constructor
}//end class ClockAnalogBuf